//
//  Animal.h
//  OC作业
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Animal : NSObject
//{
//    NSString *_name;
//    NSString *_sex;
//    NSInteger _age;
//    
//}
//
//- (void)setName:(NSString *)name;
//-(NSString *)name;
//- (void)setSex:(NSString *)sex;
//- (NSString *)sex;
//- (void)setAge:(NSInteger)age;
//- (NSInteger)age;
@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *sex;
@property (nonatomic)NSInteger age;
@property (nonatomic, assign) float weight;

- (instancetype)initWithName:(NSString *)name
                         sex:(NSString *)sex
                         age:(NSInteger)age;

+ (instancetype)animalWithName:(NSString *)name
                           sex:(NSString *)sex
                           age:(NSInteger)age;







@end
